package com.hedy.order.feign;



import com.hedy.order.feign.fallback.UserFeignCilentFallback;
import dto.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "demo-user",path = "user",fallback = UserFeignCilentFallback.class)
public interface UserFeignClient {
    @GetMapping(value = "getUser")
    public UserDTO getUserInfo(@RequestParam(value = "uid") Integer uid);
}
